'use strict'


import Http from '../kit/HttpKit'
import Api from './Api'

/**
*  帐号模块
**/

const URL_LOGIN = Api.API_URL + '/user/login';
const URL_PASS_MODIFY = Api.API_URL + '/user/passModify';



const logout = (callback)=>{
	var url = Api.API_URL + '/user/logout';
	let data = {api_token: Api.getApiToken(), api_user_id: Api.getApiUserId()};
	Http.post(url, data, json=>{
		Api.getDataCB(json, callback);
	});
}



export default{
	logout, 
	URL_LOGIN, URL_PASS_MODIFY
}
